package com.company.project.dao;

import com.company.project.core.Mapper;
import com.company.project.model.PeriodicalsCategory;
import com.company.project.util.PageUtil;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface PeriodicalsCategoryMapper extends Mapper<PeriodicalsCategory> {

    //根究paremt查询期刊专业
    public List<PeriodicalsCategory> selectPeriodicalsCategoryByParent(Integer parent);

    /**
     * 后台查询期刊专业
     */
    List<Map<Object,Object>> adminSelectPc(@Param("pageUtil") PageUtil pageUtil);
    /**
     * 后台查询期刊专业数量
     */
    Integer PCNum();
    /**
     * 后台修改期刊专业
     *
     */
    Boolean adminUpPc(PeriodicalsCategory periodicalsCategory);
    List<PeriodicalsCategory> stair();

    /**
     * 后台添加期刊专业
     */
    Boolean adminAddPc(PeriodicalsCategory periodicalsCategory);

    /**
     * 后台删除期刊专业
     */
    Boolean adminDelPc(PeriodicalsCategory periodicalsCategory);

    //后台添加期刊获取期刊专业
    List<PeriodicalsCategory> adminSelectPcP();

    //期刊评估加载期刊专业
    List<PeriodicalsCategory> selectPeriodicalsCategoryAssess();
}